<!doctype html>
<html>

<head>
    <meta charset="UTF-8" />
</head>

<body>
    <script type="text/javascript">
    window.addEventListener('message', function(e) {
        console.log(e.origin);
        console.log(e.data);

        if (e.data === 'ok') {
            //TODO something
            // 调用parent.zeroModal.closeAll();
            //e.source.postMessage('hello!', e.origin);
        }
    }, false);
    </script>
</body>

</html>
